package rsschart.services.xml;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

public class DataSetsBean {
	
	private String name;
	private String valueLabel;
	private List dataSets;
	
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getValueLabel() {
		return valueLabel;
	}
	public void setValueLabel(String valueLabel) {
		this.valueLabel = valueLabel;
	}
	
	public List getDataSets() {
		return dataSets;
	}
	public void setDataSets(List dataSets) {
		this.dataSets = dataSets;
	}
	
	public void addDataSet(DataSetBean dataSet) {
		if (dataSets==null) {
			dataSets = new ArrayList();
		}
		dataSets.add(dataSet);
	}
	
	
	public Iterator iterator() {
		if (dataSets!=null) {
			return dataSets.iterator();
		}
		return null;
	}
	

}
